﻿@model RedSand.Site.Models.NewsFullInfo
<!-- mvc javascript -->
<script src="/scripts/jquery.validate.min.js" type="text/javascript"></script>
<script src="/scripts/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
<script src="/scripts/jquery.unobtrusive-ajax.min.js" type="text/javascript"></script>
@if (Model != null)
{
    
    <div class="item-news">
        <h3 class="title clearfix">
            @Html.Action("feGenerateTitleLink", new { alias = Model.Alias, category = Model.CategoryID, title = Model.Title })
            @Html.Action("feGenerateActionLink", new { alias = Model.Alias, action = "edit", userID = Model.UserID })
            @Html.Action("feGenerateActionLink", new { alias = Model.Alias, action = "delete", userID = Model.UserID })
        </h3>
        <div class="list-category">
            Category : @Html.Action("feGenerateCategoryLink", "Category", new { Category = Model.CategoryID })
        </div>
         @if (!string.IsNullOrWhiteSpace(Model.Image))
         {
            <a class="avatar-link" href="#">
                <img alt="@Model.Alias" src="@Model.Image" class="avatar-news" />
            </a>
        }
        <div class="description-news">
            @Model.Description
        </div>
        <div class="contetnt-news">
            @Html.Raw(Model.Content)
        </div>
        <div class="info-news clearfix">
            <span class="user">@Model.Username</span>
        </div>
    </div>
    @Html.Action("feWriteComment", "Reply", new { NewsID = Model.NewsID })
    <div id="list-comment">
        @Html.Action("feComment", "Reply", new { NewsID = Model.NewsID })
    </div>
}
